import service from "@/request/index";

//person
export function getPersonList(data:any){
  console.log(data)
  //const param = JSON.stringify(data)
  return service({
      url:`/sysuser/page?page=${data.page}&pageSize=${data.pageSize}&projectName=${data.projectName}&realname=${data.realname}&userJob=${data.userJob}&dept=${data.dept}&status=${data.status}&rank=${data.rank}&employmentDate=${data.employmentDate}`,     
      method:'get',
      
  })
}
//增加
export function addPersonList(data:Object){
  //const param = JSON.stringify(data)
  return service({
      url:`/sysuser/add`,      
      method:'post',
      data
      
  })
}

//修改
export function updatePersonList(data:Object){
  //const param = JSON.stringify(data)
  return service({
    url:`/sysuser/update`,      
    method:'put',
    data,
    
})
}

//删除
export function delPersonList(id:any){
  //const param = JSON.stringify(data)
  return service({
      url:`/sysuser/delete/${id}`,      
      method:'delete'      
  })
}

